package ch3;

public class StrTest2 {

	public static void main(String[] args) {
		// String不变性
		// String 常量池
		String s = "java";
		s.concat("c#");
		s.concat("html");
		s.toUpperCase();
		System.out.println(s);
		String s2 = s;
		s = "C语言";
		System.out.println("s2=" + s2);
		String i = "老刘";
		String j = "老刘";
		System.out.println(i == j);
	}

}
